package com.hqbzl.chat.model;

import java.io.Serializable;

import com.hqbzl.chat.protocol.MessageType;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import static com.hqbzl.chat.constant.Constants.GROUP_EXIT_MSG_TYPE;

@Builder
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class GExitGroupMessage implements MessageType, Serializable {
    private String groupName;
    private String userName;

    @Override
    public int getMessageType() {
        return GROUP_EXIT_MSG_TYPE;
    }

    @Override
    public int getSequenceId() {
        return 0;
    }
}
